<%@ taglib prefix="cs" uri="futuretense_cs/ftcs1_0.tld"
%><%@ taglib prefix="asset" uri="futuretense_cs/asset.tld"
%><%@ taglib prefix="assetset" uri="futuretense_cs/assetset.tld"
%><%@ taglib prefix="commercecontext" uri="futuretense_cs/commercecontext.tld"
%><%@ taglib prefix="ics" uri="futuretense_cs/ics.tld"
%><%@ taglib prefix="listobject" uri="futuretense_cs/listobject.tld"
%><%@ taglib prefix="render" uri="futuretense_cs/render.tld"
%><%@ taglib prefix="siteplan" uri="futuretense_cs/siteplan.tld"
%><%@ taglib prefix="searchstate" uri="futuretense_cs/searchstate.tld"
%><%@ taglib prefix="string" uri="futuretense_cs/string.tld"
%><%@ page import="COM.FutureTense.Interfaces.*,
                   COM.FutureTense.Util.ftMessage,
                   COM.FutureTense.Util.ftErrors,
                   java.util.*"
%><cs:ftcs><%-- Article_C/Article

INPUT

OUTPUT

--%>
<%-- Record dependencies for the Template --%>
<ics:if condition='<%=ics.GetVar("tid")!=null%>'><ics:then><render:logdep cid='<%=ics.GetVar("tid")%>' c="Template"/></ics:then></ics:if><%

HashMap assetAttributes = new HashMap();

%><!-- START GET ARTICLE ATTRIBUTES --><%
assetAttributes.put("Title","");
assetAttributes.put("Body","");
assetAttributes.put("Image","");
ics.SetObj("hmAttributes", assetAttributes);

%><render:callelement elementname="LOGIC/GetAttributeValues"><%
	%><render:argument name="c" value='<%=ics.GetVar("c")%>'/><%
	%><render:argument name="cid" value='<%=ics.GetVar("cid")%>'/><%
%></render:callelement><%

ics.SetObj("hmAttributes", null);
String articleTitle = (String)assetAttributes.get("Title");
String body = (String)assetAttributes.get("Body");
String articleImage = (String)assetAttributes.get("Image");
%><!-- END GET ARTICLE ATTRIBUTES --><%

%><!-- START GET ARTICLE IMAGE URL --><%
assetAttributes.clear();
assetAttributes.put("Image","");
ics.SetObj("hmAttributes", assetAttributes);

%><render:callelement elementname="LOGIC/GetAttributeValues"><%
	%><render:argument name="c" value="Media_C"/><%
	%><render:argument name="cid" value='<%=articleImage%>'/><%
%></render:callelement><%

ics.SetObj("hmAttributes", null);
String image = (String)assetAttributes.get("Image");

%><render:callelement elementname="LOGIC/GetBlobUrl" scoped="global"><%
	%><render:argument name="FlexBlobId" value='<%=image%>'/><%
	%><render:argument name="FlexBlobOutputVar" value="imageUrl"/><%
%></render:callelement><%
%><!-- END GET ARTICLE IMAGE URL --><%
%><div class="box"><%
	%><h1 class="boxtitlebig"><%=articleTitle%></h1><%
	if(Utilities.goodString(ics.GetVar("imageUrl"))) {
		%><img src='<string:stream variable="imageUrl"/>' id="large_logo" alt="PSFUK Logo" style="float: right;"/><%
	}
	%><p><%=body%></p><%
%></div><%
%></cs:ftcs>